@layout("/backend/common/_container.html"){
<style type="text/css">
.panel-tool{
	display:none;
}
</style>
	<div class="inner-fit">
	    <div class="hisui-layout" data-options="fit:true">   
			<div data-options="region:'west',title:'参数分类',split:true,split:true" style="width:220px;">
				<div class="dhcc-hisui-toolbar">
					<div class="dhcc-hisui-toolbar-btn">
						<a onclick="javascript:Config.openAddCategory()" class="hisui-linkbutton" style="width:31.5%" iconCls="icon-add" plain="true">添加</a>
						<a onclick="javascript:Config.openCategoryDetail()" class="hisui-linkbutton" style="width:31.5%" iconCls="icon-edit" plain="true">编辑</a>
						<a onclick="javascript:Config.delCategory()" class="hisui-linkbutton" style="width:31.5%" iconCls="icon-remove" plain="true">删除</a>
					</div>
					<div class="dhcc-hisui-toolbar-seach">
						<input type="text" id="seachKey" value="" class="textbox" />
					</div>
					<div class="dhcc-hisui-toolbar-btn">
						<a onclick="javascript:Config.ztree.getObject().expandAll(true)" class="hisui-linkbutton" style="width:48.5%" iconCls="icon-arrow-bottom" plain="true">展开</a>
						<a onclick="javascript:Config.ztree.getObject().expandAll(false)" class="hisui-linkbutton" style="width:48.5%" iconCls="icon-arrow-top" plain="true">折叠</a>
					</div>
                </div>
                <ul id="categoryTree" class="ztree"></ul>
			</div>   
			<div data-options="region:'center',title:'参数管理',split:true"  style="overflow-x: hidden;padding:10px">
		        <div class="dhcc-con dhcc-con-boder">
		            <div class="dhcc-con-left">
						<#InputCon id="paramKey" name="参数键名" />
						<#InputCon id="paramValue" name="参数键值" />
						<#InputCon id="description" name="描述" />
						<#Button name="查询" icon="fa fa-search" clickFun="Config.search()"/>
		            </div>
		        </div>
				<div class="hidden-xs" id="ConfigTableToolbar" role="group">
			        @if(shiro.hasPermission("config:add")){
			            <#Button name="新增" btnCss="l-bt-green" icon="fa fa-plus" clickFun="Config.add()"/>
			        @}
			        @if(shiro.hasPermission("config:update")){
			            <#Button name="修改" icon="fa fa-edit" clickFun="Config.edit()" space="true"/>
			        @}
			        @if(shiro.hasPermission("config:delete")){
			            <#Button name="删除" btnCss="l-bt-red" icon="fa fa-remove" clickFun="Config.del()" space="true"/>
			        @}	
				</div>
		    	<#Table id="ConfigTable"/>
			</div>
		</div>
	</div>
<script src="${ctxPath}/static/backend/system/config/config.js"></script>
@}